package com.doitedu.day01

import java.util.UUID

import com.sun.deploy.util.StringUtils

/**
 * @Date 22.6.19
 * @Created by HANGGE
 * @Description
 */
object _04WhileDemo {
  def main(args: Array[String]): Unit = {
    // val uuid = new UUID(4, 7)
    var i = 0
    var flag = true
    while (flag) {
      i += 1
      val uuid = UUID.randomUUID()
      println(uuid + "____" + i)
      Thread.sleep(1000)
      if (i == 10) {
        flag = false
      }
    }


  }

}
